package com.netty.server.processor.up;

import com.netty.server.cmd.LoginCmd;
import org.springframework.stereotype.Service;

import java.util.concurrent.TimeUnit;

/**
 * 登录协议处理器
 *
 * @author: 王霄
 * @date: 2022/1/19 18:49
 */
@Service
public class LoginPlugin {

    public boolean login(LoginCmd loginCmd) {
        try {
            TimeUnit.SECONDS.sleep(1);
        } catch (InterruptedException e) {
            throw new RuntimeException(e);
        }
        return true;
    }
}
